home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
bjack.swf
/
scripts
/
DefineSprite_186
/
frame_14
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
3KB
|
123 lines
if("10" < d and eval("_level0/action:deal") == "11")
{
set("_level0/action:deal","1");
}
else if(d < "7" and eval("_level0/action:deal") == "11")
{
set("_level0/action:TDdeal","1");
}
else
{
set("_level0/action:deal",eval("_level0/action:deal"));
set("_level0/action:TDdeal",eval("_level0/action:deal"));
}
d += eval("_level0/action:deal");
if(eval("_level0/action:TDdeal") == "1" or TDControl == "1")
{
if(BJCpl1 + eval("_level0/action:deal") < "21")
{
TDControl = "1";
dt = d - "10";
}
else
{
dt = "";
}
}
if(eval("_level0:SplitForD") != "1")
{
if(BJControl + eval("_level0/action:deal") == "21")
{
stop();
d = "BlackJack";
if(d eq eval("_level0/1Player:pl1"))
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Push");
}
}
else
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Lose");
}
}
}
if(BJControl + eval("_level0/action:deal") >= "17" and d ne "BlackJack")
{
stop();
if("21" < d)
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("DBusts");
}
}
if("21" >= d and eval("_level0/1Player:pl1") < d)
{
if(eval("_level0/1Player:pl1") ne "BlackJack")
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Lose");
}
}
else
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Win");
}
}
}
if("21" >= d and d < eval("_level0/1Player:pl1"))
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Win");
}
}
if("21" >= d and d == eval("_level0/1Player:pl1"))
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Push");
}
}
}
else if(d ne "BlackJack")
{
play();
}
}
else
{
if(BJControl + eval("_level0/action:deal") == "21")
{
stop();
d = "BlackJack";
tellTarget("_level0/1Player/Message")
{
gotoAndStop("Lose2");
}
}
if(BJControl + eval("_level0/action:deal") >= "17" and d ne "BlackJack")
{
stop();
if("21" < d)
{
tellTarget("_level0/1Player/Message")
{
gotoAndStop("DBusts2");
}
}
call("TotSplit");
}
else if(d ne "BlackJack")
{
play();
}
}